home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Toolbox / Live Scroll 1.0 / Sources / Prototypes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-13  |  1.7 KB  |  80 lines  |  [TEXT/CWIE]

  1. #ifndef __PROTOTYPES__
  2. #define __PROTOTYPES__
  3.  
  4.  
  5.  
  6. // System Includes
  7. #ifndef __WINDOWS__
  8.     #include <Windows.h>
  9. #endif
  10.  
  11.  
  12.  
  13.  
  14.  
  15. // Application Includes
  16. #ifndef __BAREBONES__
  17.     #include "BareBones.h"
  18. #endif
  19.  
  20.  
  21.  
  22.  
  23.  
  24. // BareBones.c
  25. void        main ( void );
  26.  
  27.  
  28. // Initialize.c
  29. void        InitToolbox ( void );
  30. void        InitApplication ( void );
  31.  
  32.  
  33. // AppleEventStuff.c
  34. OSErr        InstallAppleEventHandlers ( void );
  35.  
  36.  
  37. // Events.c
  38. void        EventLoop ( void );
  39.  
  40.  
  41. // Windows.c
  42. void        CreateWindow ( void );
  43. WindowRef    DestroyWindow ( WindowRef windowRef );
  44. void        DoActivate ( EventRecord* theEvent );
  45. void        DoUpdate ( WindowRef theWindow );
  46. void        DoContentClick ( WindowRef theWindow, EventRecord* theEvent );
  47. void        DoGrowWindow ( WindowRef theWindow, EventRecord* theEvent );
  48. void        DoDragWindow ( WindowRef theWindow, EventRecord* theEvent );
  49. void        UpdateWindowContent ( WindowRef theWindow );
  50. OSErr        DoAboutBox ( void );
  51.  
  52.  
  53. // Menus.c
  54. void        MenuDispatch ( SInt32 menuResult );
  55.  
  56.  
  57. // ActionProc.c
  58. pascal void ScrollControlActionProc ( ControlRef theControl, SInt16 thePart );
  59. pascal void    ScrollThumbActionProc ( void );
  60. OSErr        BeginThumbTracking ( ControlRef theControl );
  61. void        EndThumbTracking ( void );
  62.  
  63.  
  64.  
  65. // Utilities.c
  66. StringPtr    CopyPStr ( Str255    inSourceStr, StringPtr outDestStr, SInt16 inDestSize );
  67. StringPtr    ConcatPStr ( Str255 ioFirstStr, Str255 inSecondStr, SInt16 inDestSize );
  68. void        OSTypeToPStr ( OSType inOSType, StringPtr outString );
  69. void        PStrToOSType ( StringPtr inString, OSType* outOSType );
  70. void        AlertUser ( SInt16 messageCode, SInt16 errorNum, StringPtr theString );
  71. void        LocalToGlobalRect ( Rect* theRect );
  72. Boolean        IsMovableModal ( WindowRef theWindow );
  73.  
  74. #if DEBUGGING
  75. void        DebugStrNum ( Str255 str, SInt32 num );
  76. #endif
  77.  
  78.  
  79. #endif
  80.